package com.springframework.DI_t.array_DI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;

public class ArrayDIRun {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("com.springframework/DI_t/array_DI/bean.xml");
        Person person = context.getBean("person", Person.class);
        System.out.println(Arrays.toString(person.getHobbies()));
        System.out.println(person.getName());
        System.out.println(person.getAge());
    }
}
